<template>
	<view class="qq">
		<view class="logo">

		</view>
		<view class="infos">
			<view class="topsImg">
				<image class="logo1" src="https://wuyouzhuanapp.oss-cn-beijing.aliyuncs.com/FireAndFire/user/image_403.png" mode="">
				</image>
				
				<view class="tit">
					达到今日上限
				</view>
			</view>
			<view class="desc">
				{{content}}
			</view>
			<view v-if="type==1" @click="handleClick()" class="btn">
				我知道了
			</view>
			<view v-else class="btnGroup">
				<view @click="handleClick()" class="btn cancle">
					取消
				</view>
				<view @click="clickVip()" class="btn">
					开通会员
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: [
			'type',
			'content',
		],
		data() {
			return {

			}
		},
		methods: {
			handleClick() {
				this.$emit('closeDk')
			},
			// 点击会员
			clickVip() {
				// 点击会员
				this.$emit('clickVip')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.qq {
		position: relative;

		.btnGroup {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.cancle {

				background: #2F336B !important;
			}

			.cancle::after {
				border: none !important;
			}
		}

		width: 638rpx;
		
		.infos {
			padding-bottom: 44rpx;
			border-radius: 20rpx;
			// padding: 120rpx 0 0;
			background: #282B4B;

			.tit {
				font-size: 38rpx;
				font-family: Tomorrow, Tomorrow;
				font-weight: 400;
				color: #8CC950;
				line-height: 45rpx;
			}

			.desc {
				padding: 50rpx 45rpx 109rpx;
				font-size: 30rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 300;
				color: #FFFFFF;
				line-height: 35rpx;
			}

			.btn {

				background: #455FE8;
				width: 263rpx;
				height: 80rpx;
				border-radius: 70rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 34rpx;
				font-family: PingFang HK-Light, PingFang HK;
				font-weight: 300;
				color: #FFFFFF;
				margin: 0 auto;

			}
		}
		.topsImg{
			display: flex;
			align-items: center;
			// justify-content: center;
		}

		.logo1 {
			// display: block;
			width: 160rpx;
			height: 162rpx;
			margin: -35rpx 26rpx 0 61rpx;

		}

		

	}
</style>